
/*
 * @Author: xiaoyan
 * @Date: 2022-02-10 14:07:02
 * @LastEditors: xiaoyan
 * @LastEditTime: 2022-02-10 14:40:14
 * @Description: select机构选择组件
 * @FilePath: \user_auth_front\src\pages\components\selectOrganizationLists\index.tsx
 */
import { Select } from "antd";
import { useMappedState } from "redux-react-hook"
export default ()=>{
    const { Option } = Select;
    const organizationLists = useMappedState(state=>state.dictionary.organizationLists);
    const selectOrganizationLists = organizationLists.map((item:any)=>
        <Option key={item.organizationId} value={item.organizationId}>{item.name}</Option>
    );
    return(
        <>
            {selectOrganizationLists}
        </>
    );
};